home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Memory / CWMemCfg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  2.1 KB  |  85 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        CWMemCfg.h
  3.  
  4.     Contains:    New Project prefix file for Memory subsystem.
  5.  
  6.     Owned by:    Ted Jucevic
  7.  
  8.     Copyright:    © 1995 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <4>     9/13/96    jpa        1371387: Optimize for speed. Enable auto
  13.                                     inlining.
  14.          <3>     6/19/96    jpa        Remove optimization_level pragma for 68K.
  15.          <2>     5/31/96    JA        CW68K: Added pragmas
  16.          <5>     8/29/95    jpa        Enable optimization in nondebug build.
  17.                                     [1280301]
  18.          <4>      8/4/95    DM        Leak checking [1267956]
  19.          <3>     5/25/95    jpa        Turn traceback on. [1253324]
  20.          <2>     1/23/95    TJ        This is now the Project prefix file for
  21.                                     Memory.  This change was to allow for the
  22.                                     MM_DEBUG to be defined in a seperate file.
  23.          <1>     1/23/95    TJ        first checked in
  24.  
  25.     To Do:
  26.     In Progress:
  27.         
  28. */
  29.  
  30. #ifdef __MWERKS__
  31.     // Metrowerks precompiled headers:
  32.     #ifdef __powerc
  33.     #include <MacHeadersPPC>
  34.     #else
  35.     #include <MacHeadersCFM68K>
  36.     #endif
  37.  
  38.     // Things already defined in the MPW precompiled header but not in CodeWarrior:
  39.     #define SystemSevenOrLater 1
  40.     #define ppcinterfaces            // GX headers want this, if using universal headers
  41.     #define mw_bug 1                // Enables temporary SOM fix 'til CodeWarrior compiler is fixed
  42.     
  43.     #undef OLDROUTINENAMES
  44.     #define OLDROUTINENAMES 0
  45.     #ifndef OLDROUTINELOCATIONS
  46.     #define OLDROUTINELOCATIONS 0
  47.     #endif
  48. #endif
  49.  
  50. #include "MemCnfig.h"
  51.  
  52. #include "MMDbgOpt.h"
  53.  
  54. #ifdef __MWERKS__
  55. #if defined(powerc) || defined(__powerc)
  56.     #if MM_DEBUG
  57.         #pragma traceback on        /* Add traceback symbols for debugging */
  58.         #pragma global_optimizer off
  59.         #pragma scheduling off
  60.         #pragma auto_inline off
  61.     #else
  62.         #pragma traceback off
  63.         #pragma global_optimizer on
  64.         #pragma optimization_level 4
  65.         #pragma optimize_for_size off
  66.         #pragma scheduling on
  67.         #pragma auto_inline on
  68.     #endif
  69. #else /* 68K */
  70.     #pragma code68020 on
  71.     #pragma pcrelstrings off
  72.     #if MM_DEBUG
  73.         #pragma a6frames on
  74.         #pragma macsbug on
  75.         #pragma global_optimizer off
  76.         #pragma auto_inline off
  77.     #else
  78.         #pragma a6frames off
  79.         #pragma macsbug off
  80.         #pragma global_optimizer on
  81.         #pragma optimize_for_size off
  82.         #pragma auto_inline on
  83.     #endif
  84. #endif
  85. #endif